<%@ page contentType="text/html; charset=ISO-8859-5" %>

<!-- 
 * Copyright (c) 2010 Bob Brady (http://www.bradysoftware.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the 
 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 
 * express or implied. See the License for the specific language governing permissions and 
 * limitations under the License.
 -->

<%@ taglib uri="/WEB-INF/rsscenturion.tld" prefix="rss"%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>RSS Centurion Examples</title>
</head>

<body>
<h1>RSS Centurion Tag Examples</h1>

<h2>RSS Centurion Google Code Source Changes: Atom Feed</h2>

<rss:feed
	url="http://code.google.com/feeds/p/rsscenturion/svnchanges/basic"
	feedId="rssCenturion" />

<h3>Titles and Content of Last Three Changes</h3>
<ul>
  <rss:forEachEntry feedId="rssCenturion" startIndex="0" endIndex="2">
    <li><a href="<rss:entryLink feedId="rssCenturion" />"><rss:entryTitle feedId="rssCenturion"/></a><br />
         <rss:entryContent feedId="rssCenturion" />
    </li><br>
    <!-- This works too 
    	<li>${entry.link}</li><br> 
    -->
  </rss:forEachEntry>
</ul>

<h2>Rome Fetcher Blog Entries: RSS Feed</h2>

<rss:cachedFeed
	url="http://blogs.sun.com/roller/rss/pat"
	feedId="cachedRssCenturion" debug="true" />

<!--  Second call should not get data again -->
<rss:cachedFeed
	url="http://blogs.sun.com/roller/rss/pat"
	feedId="cachedRssCenturion2ndCall" debug="true" />

<h3>Cached Titles of Last Three Changes</h3>
<ul>
  <rss:forEachEntry feedId="cachedRssCenturion" startIndex="0" endIndex="2">
    <li><a href="<rss:entryLink feedId="cachedRssCenturion" />"><rss:entryTitle feedId="cachedRssCenturion"/></a></li><br>
    <!-- This works too 
    	<li>${entry.link}</li><br> 
    -->
  </rss:forEachEntry>
</ul>
</body>

</html>